package com.zzw.service.interfaces;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzw.bean.Teacher;
import com.zzw.bean.User;
import com.zzw.mapper.TeacherMapper;
import com.zzw.mapper.UserMapper;
import com.zzw.service.imple.ITeacherService;
import com.zzw.service.imple.IUserService;
@Service
public class TeacherServiceImple implements ITeacherService {
	
	@Autowired
	TeacherMapper mapper;

	public List<Teacher> selectTeacher(Teacher teacher) {
		// TODO Auto-generated method stub
		return mapper.selectTeacher(teacher);
	}
	
	
	public void addTeacher(Teacher teacher) {
		// TODO Auto-generated method stub
		mapper.addTeacher(teacher);
	}

	public void deleteTeacher(Integer id) {
		// TODO Auto-generated method stub
		mapper.deleteTeacher(id);
	}

	public Teacher selectTeacherById(Integer id) {
		// TODO Auto-generated method stub
		return mapper.selectTeacherById(id);
	}

	public void updateTeacher(Teacher teacher) {
		// TODO Auto-generated method stub
		mapper.updateTeacher(teacher);
	}


	public void addContact(Teacher teacher) {
		// TODO Auto-generated method stub
		mapper.addContact(teacher);
	}

	
	

	

}
